package com.liuwei.msmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liuwei.msmall.common.utils.PageUtils;
import com.liuwei.msmall.product.entity.AttrGroupEntity;
import com.liuwei.msmall.product.vo.AttrVo;
import com.liuwei.msmall.product.vo.SpuItemAttrGroupVo;
import com.liuwei.msmall.product.vo.resp.AttrGroupWithAttrRespVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author llww
 * @email 2456888577@qq.com
 * @date 2021-02-25 17:45:01
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Long categoryId, Map<String, Object> params);

    AttrGroupEntity getOneWithCatePath(Long attrGroupId);

    List<AttrVo> getAttrRelationList(Long attrgroupId);

    PageUtils  getNoAttrRelationList(Long attrgroupId,Map<String,Object> params);

    List<AttrGroupWithAttrRespVo> getAttrGroupAndAttrByCateId(Long cateId);

    List<SpuItemAttrGroupVo> getAttrGroupWithAttrBySpuId(Long spuId, Long catalogId);

}

